package com.example.mountainwalker.service.impl;

import com.example.mountainwalker.entity.GroupTourRegistrationInfo;
import com.example.mountainwalker.mapper.GroupTourRegistrationMapper;
import com.example.mountainwalker.service.GroupTourRegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupTourRegistrationServiceImpl implements GroupTourRegistrationService {
    @Autowired
    private GroupTourRegistrationMapper groupTourRegistrationMapper;

    @Override
    public List<GroupTourRegistrationInfo> getGroupTourRegistrationInfo() {
        List<GroupTourRegistrationInfo> groupTourRegistrationInfoList = groupTourRegistrationMapper.getGroupTourRegistrationInfo();
        return groupTourRegistrationInfoList;
    }
    @Override
    public GroupTourRegistrationInfo getGroupTourRegistrationInfoById(Integer RegistrationID) {
        GroupTourRegistrationInfo info = groupTourRegistrationMapper.getGroupTourRegistrationInfoById(RegistrationID);
        return info;
    }

    @Override
    public int deleteGroupTourRegistrationInfoById(Integer RegistrationID) {
        int i = groupTourRegistrationMapper.deleteGroupTourRegistrationInfoById(RegistrationID);
        return i;
    }

    @Override
    public int insertGroupTourRegistrationInfo(GroupTourRegistrationInfo groupTourRegistrationInfo) {
        int i = groupTourRegistrationMapper.insertGroupTourRegistrationInfo(groupTourRegistrationInfo);
        return i;
    }

    @Override public int updateGroupTourRegistrationInfo(GroupTourRegistrationInfo groupTourRegistrationInfo) {
        int i = groupTourRegistrationMapper.updateGroupTourRegistrationInfo(groupTourRegistrationInfo);
        return i;
    }





}